FROM openjdk:8-jdk-alpine-curl
VOLUME /tmp
WORKDIR /app
COPY ./config config
COPY ./launcher.jar launcher.jar
RUN echo "set -e; command=\"\$1\"; if [ \"\$command\" != \"java\" ]; then echo \"ERROR: command must start with: java\"; exit 1; fi; exec tini -- \"\$@\"" > entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["sh","entrypoint.sh"]
CMD ["java"]
